reftests: Add test for box brokenness
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Jul 2011 23:57:27 +0000 (01:57 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 1 Jul 2011 23:57:27 +0000 (01:57 +0200)
This is a tests for the last commit.

tests/reftests/Makefile.am
tests/reftests/style-properties-nth-child.css [new file with mode: 0644]
tests/reftests/style-properties-nth-child.ref.ui [new file with mode: 0644]
tests/reftests/style-properties-nth-child.ui [new file with mode: 0644]

index 625c56ff8a86707ae3ffe37e9964ae1f75ce0c0b..0d4c19d977046003e07d3c2b9dc5c47ab0d8d189 100644 (file)
@@ -139,6 +139,9 @@ EXTRA_DIST += \
        shorthand-entry-border.ui \
        simple.ref.ui \
        simple.ui \
+       style-properties-nth-child.css \
+       style-properties-nth-child.ref.ui \
+       style-properties-nth-child.ui \
        toplevel-vs-popup.ref.ui \
        toplevel-vs-popup.ui \
        unresolvable.css \
diff --git a/tests/reftests/style-properties-nth-child.css b/tests/reftests/style-properties-nth-child.css
new file mode 100644 (file)
index 0000000..d3d406c
--- /dev/null
@@ -0,0 +1,11 @@
+* {
+  -GtkToolbar-button-relief: none;
+}
+
+.grid-toolbar {
+    -GtkToolbar-button-relief: normal;
+}
+
+.box-toolbar {
+    -GtkToolbar-button-relief: normal;
+}
diff --git a/tests/reftests/style-properties-nth-child.ref.ui b/tests/reftests/style-properties-nth-child.ref.ui
new file mode 100644 (file)
index 0000000..2cf5d5f
--- /dev/null
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <property name="width_request">300</property>
+    <property name="height_request">300</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkScrolledWindow" id="scrolledwindow1">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="hexpand">True</property>
+            <property name="shadow_type">in</property>
+            <child>
+              <placeholder/>
+            </child>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkToolbar" id="toolbar1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">True</property>
+            <style>
+              <class name="grid-toolbar"/>
+            </style>
+            <child>
+              <object class="GtkToolButton" id="add_button">
+                <property name="visible">True</property>
+                <property name="use_action_appearance">False</property>
+                <property name="icon_name">list-add-symbolic</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="homogeneous">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkToolButton" id="add_button2">
+                <property name="visible">True</property>
+                <property name="use_action_appearance">False</property>
+                <property name="icon_name">list-add-symbolic</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="homogeneous">True</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">1</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/style-properties-nth-child.ui b/tests/reftests/style-properties-nth-child.ui
new file mode 100644 (file)
index 0000000..fe6aaed
--- /dev/null
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <property name="width_request">300</property>
+    <property name="height_request">300</property>
+    <child>
+      <object class="GtkBox" id="box1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkScrolledWindow" id="scrolledwindow1">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="hexpand">True</property>
+            <property name="shadow_type">in</property>
+            <child>
+              <placeholder/>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkToolbar" id="toolbar1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="hexpand">True</property>
+            <style>
+              <class name="box-toolbar"/>
+            </style>
+            <child>
+              <object class="GtkToolButton" id="add_button">
+                <property name="visible">True</property>
+                <property name="use_action_appearance">False</property>
+                <property name="icon_name">list-add-symbolic</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="homogeneous">True</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkToolButton" id="add_button2">
+                <property name="visible">True</property>
+                <property name="use_action_appearance">False</property>
+                <property name="icon_name">list-add-symbolic</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="homogeneous">True</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>